<div class="state">
	<ul>
		<li class="on">
			<i>1</i>
			<p>购物车</p>
		</li>
		<li class="on">
			<i>2</i>
			<p>填写核对订单信息</p>
		</li>
		<li>
			<i>3</i>
			<p>提交订单成功</p>
		</li>
		<li>
			<i>4</i>
			<p>完成</p>
		</li>
	</ul>
</div>

<table class="layui-table" lay-skin="line">
	<colgroup>
		<col width="40">
		<col width="140">
		<col>
		<col width="100">
		<col width="100">
		<col>
		<col>
	</colgroup>
  <thead>
    <tr class="no-bg">
      <th></th>
      <th>商品图片</th>
      <th>商品信息</th>
      <th>投放周期</th>
      <th>位置租金</th>
      <th>安装维护</th>
      <th>成交总价</th>
      <th>操作</th>
    </tr> 
  </thead>
</table>

<?php foreach($data['orderdata'] as $order){ ?>  
	<table class="layui-table" lay-skin="line" >
	 <colgroup>
		<col width="40">
		<col width="140">
		<col>
		<col width="100">
		<col width="100">
		<col>
		<col>
	  </colgroup>
	  <thead>
	    <tr class="bg-gray">
	      <th colspan="8">订单编号：<?= $order['order_no'] ?></th>
	    </tr> 
	  </thead>
	  <tbody>	
	  <?php foreach($order['order_goods_list'] as $goods){ ?>
		<tr>
		  <td><input type="checkbox" class="qx" checked disabled /></td>
		  <td><a href="/goodsdetail?goods_id=<?= $goods['goods_id'] ?>"><img src="<?= $backend_server.$goods['img'] ?>"/></a></td>
		  <td><a href="/goodsdetail?goods_id=<?= $goods['goods_id'] ?>"><?= $goods['goodsname'] ?></a></td>
		  <td><?= $goods['nums'] ?>个月</td>
		  <td class="red">¥<strong class="f14"><?= $goods['price'] ?></strong></td>
		  <td class="red">¥<strong class="f14"><?= $goods['install_price'] ?></strong></td>
		  <td class="red">¥<strong class="f14"><?= $goods['total_price'] ?></strong></td>
		  <td><a class="layui-btn layui-btn-xs layui-btn-warm goods-delete" data-id="<?= $goods['id']?>">删除</a> </td>
		</tr>
		<?php } ?>		
				
	  </tbody>
	</table>
<?php } ?>
	
	
<table class="layui-table no-b mt30" lay-skin="nob" >
  <tbody>
    <tr class="bg-gray">
      <td><input  type="checkbox" title="全选"> </td>
	  <td>一共购买了3件商品</td>
	  <td class="text-r">总计：284元</td>
	  <td class="text-r">
		<a class="layui-btn  layui-btn-danger " data-id="<?= $goods['id']?>">提交订单</a> </td>
    </tr>
  </tbody>
</table>